package com.zky.group.grouppintuan.feign;

import com.zky.common.entity.UserEntity;
import com.zky.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("group-user")
@RequestMapping("groupuser/user")
public interface UserFeignService {




    @RequestMapping("/info/{userId}")
//    @RequiresPermissions("groupuser:user:info")
    public R info(@PathVariable("userId") Long userId);

    /**
     * 修改
     */
    @RequestMapping("/update")
//    @RequiresPermissions("groupuser:user:update")
    public R update(@RequestBody UserEntity user);

}
